<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>尺【溢出】单位</title>
		<style>
			/*单位：px   %  pc端*/
			/*div{
				width:100px;
				height: 100px; /*高度：不好使  div元素  区域有宽没高*/
			/*	background: red;
			}*/
			/*overflo溢出属性*/
			div{
				width: 400px;
				height: 100px;
				border: 1px solid red;
				/*background-color: blue;*/
				overflow:hidden;/*溢出隐藏 hidden*/
				overflow: scroll;/*溢出加滚动条*/
				overflow: auto;/*自动加滚动条*/
				/*练习*/
				overflow-x: hidden;
				width: 1200px;
				height: 600px;
				overflow-y: scroll;
			}
			p{
				width: 800px;
				
			}
			
		</style>
	</head>
	<body>
		<!--div理解为水杯-->
		<div>
			<!-- p 理解为冰-->
			<p>
				<img src="img/img/p_small_001.jpg" alt="1" />
				<img src="img/img/p_small_002.jpg" alt="2" />
				<img src="img/img/p_small_003.jpg" alt="3" />
				<img src="img/img/p_small_004.jpg" alt="4" />
				<img src="img/img/p_small_005.jpg" alt="5" />
				<img src="img/img/p_small_006.jpg" alt="6" />
				<img src="img/img/p_small_007.jpg" alt="7" />
			</p>
		</div>
		<!--<div></div>-->
	</body>
</html>